﻿using System.Collections.Generic;

namespace eCommerce.db.DataRespository
{
    public class IeDetailEntity
    {
        public long IeDetailId { get; set; }
        public long IeId { get; set; }
        public int SizeId { get; set; }
        public int ParentId { get; set; }
        public int CategoryId { get; set; }
        public int ProductId { get; set; }
        public int Quantity { get; set; }

        public int ItemIndex { get; set; }
        public string ProductName { get; set; }
        public string SizeName { get; set; }
        public string SizeAndQuantity { get; set; }

        private readonly Dictionary<string, object> _extendedProperties = new Dictionary<string, object>();
        public object this[string propertyName]
        {
            get
            {
                return (_extendedProperties.ContainsKey(propertyName) ? _extendedProperties[propertyName] : null);
            }
            set
            {
                if (_extendedProperties.ContainsKey(propertyName))
                {
                    _extendedProperties[propertyName] = value;
                }
                else
                {
                    _extendedProperties.Add(propertyName, value);
                }
            }
        }
    }
}
